package leetcode;


import java.util.*;

class Item {
    List<Integer> list;

    public Item(List<Integer> list) {
        this.list = list;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Item item = (Item) o;
        return Objects.equals(list, item.list);
    }

    @Override
    public int hashCode() {
        Collections.sort(list);
        return Objects.hash(list);
    }
}